import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import 'amfe-flexible'
import './assets/font/iconfont.css'

//引入请求文件
import '@/router/request'

//引入echarts 数据可视化
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts;

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import ZkTable from 'vue-table-with-tree-grid'
Vue.use(ZkTable)
    //富文本框 引用
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.use(VueQuillEditor)

//引用dayjs 库 进行时间戳的转换
import dayjs from 'dayjs'

//注册全局过滤器
Vue.filter('dateFormat', function(time) {
    const dtStr = dayjs.unix(time).format('YYYY-MM-DD HH:mm:ss')
    return dtStr
})

Vue.config.productionTip = false

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')